﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace eduscrum.Models
{
    public class UserStory
    {
        public int UserStoryID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public int StoryPoints { get; set; }
        public int Priority { get; set; }

        /* Tasks will be available in a later iteration
        //Foreign key
        public virtual List<Task> Tasks { get; set; }*/

        //Foreign key
        public virtual Sprint Sprint { get; set; }
        //Foreign key
        public virtual Phase Phase { get; set; }

        //Foreign key with constraint and ONDELETE CASCADE
        [Required]
        public virtual Project Project { get; set; }
    }
}